package com.yand.thinkingInJava.thinkingInJava21.threadNewcomponent;

public class Fat {

    private volatile double d;
    private static int counter = 0;
    private int id = counter ++;

    public Fat(){

        for(int i = 1 ; i < 1000; i ++){
            d+=(Math.PI + Math.E);
        }

    }

    public void operation(){
        System.out.println(this);
    }


    public String toString(){

        return "Fat id: "+id;
    }

}
